package cn.ml.gaoJi.jiHe.list;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {

        NewsTitle title1 = new NewsTitle(1,"1-北京晴天了1","admid");

        ArrayList list = new ArrayList();
        list.add(title1);
        list.remove(title1);
        for (int i=0;i< list.size();i++) {
            System.out.println(list.get(i));
        }
        if (list == null || list.isEmpty()) {
            System.out.println("list是空的！！！");
        }

    }
}
